//
//  Card.swift
//  Concentration
//
//  Created by chensk on 2019/6/20.
//  Copyright © 2019 chensk. All rights reserved.
//

import Foundation
struct Card{
    var isFaceUp = false;
    var isMatched = false;
    var identifier: Int = 0;
    static func getUniqueIdentifier()-> Int{
        Card.identifierFactory += 1;
        return Card.identifierFactory;
    }
    static var identifierFactory = 0;
    
    
    init(){
        self.identifier = Card.getUniqueIdentifier();
    }
    
    init(identifier: Int){
        self.identifier=identifier
        
    }
}
